package com;

import javax.servlet.ServletRequestEvent;
import javax.servlet.ServletRequestListener;

//监听request对象的创建和销毁
public class MyListener1 implements ServletRequestListener {
    @Override
    public void requestDestroyed(ServletRequestEvent sre) {
        //销毁
        System.out.println("销毁了！！！");
    }

    @Override
    public void requestInitialized(ServletRequestEvent sre) {
        System.out.println("创建了！！！！");

    }
}
